Skip to content

Conversation

@mclavel
Copy link

@mclavel mclavel commented Oct 11, 2025

This PR adds support for the reserved_internal_range field in subnet secondary ranges

@mclavel mclavel requested review from a team and imrannayer as code owners October 11, 2025 05:49
@google-cla
Copy link

google-cla bot commented Oct 11, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@mclavel
Copy link
Author

mclavel commented Oct 14, 2025

@imrannayer 👀

Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @mclavel

ip_cidr_range = secondary_ip_range.value.ip_cidr_range
range_name = secondary_ip_range.value.range_name
ip_cidr_range = secondary_ip_range.value.ip_cidr_range
reserved_internal_range = secondary_ip_range.value.reserved_internal_range
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets bump the min provider version to 6.0 when support for this field was added to the provider (for this and beta module)

https://github.com/hashicorp/terraform-provider-google/blob/main/CHANGELOG.md#600-august-26-2024

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok 👍

# Example of using reserved_internal_range instead of ip_cidr_range
# {
# range_name = "${local.subnet_03}-02"
# reserved_internal_range = "networkconnectivity.googleapis.com/projects/my-project/locations/global/internalRanges/my-range"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we create this resource as part of the example?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@bharathkkb bharathkkb changed the title feat: Add support for reserved_internal_range in secondary IP ranges feat!: Add support for reserved_internal_range in secondary IP ranges Oct 17, 2025
@mclavel mclavel requested a review from bharathkkb October 19, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants